﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Google.Protobuf;

namespace csharp_client
{
    class fronter
    {
        private 
        static public void test()
        {
            Msgproto.transPack transpack = new Msgproto.transPack();
            transpack.Seqid = 4;
            transpack.ProtoName = "hahahah";
            Console.Out.WriteLine(transpack.Seqid);
            MemoryStream ms = new MemoryStream();
            transpack.WriteTo(ms);
            byte[] data = ms.ToArray();
            for(int i = 0; i < data.Length; i++)
            {
                Console.Out.WriteLine(data[i]);
            }
            Msgproto.transPack xx;
            xx = Msgproto.transPack.Parser.ParseFrom(data);
            Console.Out.WriteLine(xx.ProtoName);

        }
    }
}
 